//
//  BDMyCouponsCell.h
//  iOS_beboy
//
//  Created by wen on 2017/9/21.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDBaseTableViewCell.h"
#import "BDMyCouponsModel.h"

#define kBDMyCouponsCellTitleHeight 35
#define kBDMyCouponsCellContentImageWidth 75
#define kBDMyCouponsCellContentImageHeight 66
#define kBDMyCouponsCellContentImagePadding 12
#define kBDMyCouponsCellContentTextPadding 10
#define kBDMyCouponsCellContentButtonWidth 65

#define kBDMyCouponsCellContentTextWidth (kBDScreenWidth - 10 * 2 - kBDMyCouponsCellContentImageWidth - kBDMyCouponsCellContentTextPadding * 2 - kBDMyCouponsCellContentButtonWidth)

#define kBDMyCouponsCellHeight (10 + 35 * 2 + 12 * 2 + kBDMyCouponsCellContentImageHeight)

#define kBDMyCouponsCellBackgroundColor [UIColor colorWithHexString:@"#f2f2f2"]// Cell背景灰色
#define kBDMyCouponsCellHighlightColor [UIColor colorWithHexString:@"#f0f0f0"]// Cell高亮时灰色
#define kBDMyCouponsCellInnerViewColor [UIColor colorWithHexString:@"#f7f7f7"]// Cell内部卡片灰色
#define kBDMyCouponsCellInnerViewHighlightColor  [UIColor colorWithHexString:@"#f0f0f0"]// Cell内部卡片高亮时灰色

@class BDMyCouponsCell;
@protocol BDMyCouponsCellDelegate;

@interface BDMyCouponsTitleView : UIView

@property (nonatomic, strong) UIView *line;
@property (nonatomic, strong) YYLabel *titleLabel;
- (void)setModel:(BDMyCouponsModel *)model;

@end

@interface BDMyCouponsToolbar : UIView

@property (nonatomic, strong) UIView *line;
@property (nonatomic, strong) YYLabel *toolLabel;
- (void)setModel:(BDMyCouponsModel *)model;

@end

@interface BDMyCouponsView : UIView

@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, strong) BDMyCouponsTitleView *titleView;
@property (nonatomic, strong) BDMyCouponsToolbar *toolbarView;
@property (nonatomic, strong) UIImageView *contentImageView;
@property (nonatomic, strong) YYLabel *contentLabel;
@property (nonatomic, strong) YYLabel *priceLabel;
@property (nonatomic, strong) UIButton *userButton;
@property (nonatomic, strong) BDMyCouponsModel *model;
@property (nonatomic, weak) BDMyCouponsCell *cell;

@end

@interface BDMyCouponsCell : BDBaseTableViewCell

@property (nonatomic, weak) id<BDMyCouponsCellDelegate> delegate;
@property (nonatomic, strong) BDMyCouponsView *couponsView;
- (void)setModel:(BDMyCouponsModel *)model;

@end

@protocol BDMyCouponsCellDelegate <NSObject>

@optional
- (void)cellDidClickButton:(BDMyCouponsCell *)cell;
- (void)cellDidClick:(BDMyCouponsCell *)cell;

@end
